package com.ruoyi.factorydata.service;

import java.util.List;
import com.ruoyi.factorydata.domain.ProcessMaterialRelation;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 工序物料关联Service接口
 *
 * @author ruoyi
 * @date 2025-07-12
 */
public interface IProcessMaterialRelationService extends IService<ProcessMaterialRelation> {
    /**
     * 查询工序物料关联
     *
     * @param id 工序物料关联主键
     * @return 工序物料关联
     */
    public ProcessMaterialRelation selectProcessMaterialRelationById(Long id);

    /**
     * 查询工序物料关联列表
     *
     * @param processMaterialRelation 工序物料关联
     * @return 工序物料关联集合
     */
    public List<ProcessMaterialRelation> selectProcessMaterialRelationList(ProcessMaterialRelation processMaterialRelation);

    /**
     * 新增工序物料关联
     *
     * @param processMaterialRelation 工序物料关联
     * @return 结果
     */
    public int insertProcessMaterialRelation(ProcessMaterialRelation processMaterialRelation);

    /**
     * 修改工序物料关联
     *
     * @param processMaterialRelation 工序物料关联
     * @return 结果
     */
    public int updateProcessMaterialRelation(ProcessMaterialRelation processMaterialRelation);

    /**
     * 批量删除工序物料关联
     *
     * @param ids 需要删除的工序物料关联主键集合
     * @return 结果
     */
    public int deleteProcessMaterialRelationByIds(Long[] ids);

    /**
     * 删除工序物料关联信息
     *
     * @param id 工序物料关联主键
     * @return 结果
     */
    public int deleteProcessMaterialRelationById(Long id);
}